package Demo1;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-09-06
 * Time:17:15
 */
public class TestDemo3 {
    public static int a;
    //两种不同的访问限制符的重载
    public static int fun(int a, int b){
        return a+b;
    }
    protected static double fun(double a,double b){
        return a+b;
    }

    public static void main(String[] args) {
        int a=fun(3,4);
        double b=fun(3.4,5.6);
        System.out.println(a);
        System.out.println(b);
    }

}
